package university;

import people.Person;

public class Student extends Person implements Matriculatable {

	private int matriculationNumber = Matriculatable.NOTENROLLED;
	
	public Student(String name) {
		super(name);
	}

	public void setMatriculationNumber(int matriculationNumber) {
		this.matriculationNumber = matriculationNumber;
	}

	public int getMatriculationNumber() {
		return matriculationNumber;
	}

	public boolean isEnrolled() {
		return (matriculationNumber == Matriculatable.NOTENROLLED) ? false : true;
	}

	public String getGreeting() {
		return "Hi! I'm " + getName() + ".";
	}
	
	@Override
	public String getWorkDescription() {
		return "Almost every day I go to Hogwarts to " + getWorkActivity() + ".";
	}
	
	@Override
	protected String getWorkActivity() {
		return "study";
	}

}
